package com.rongc.client.freight.base.request.api;


import com.android.volley.Request;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.base.request.result.UserResult;


/*
*  登录接口
* */

public class LoginApi extends AbsRequest<LoginApi.LoginParams, UserResult> {

    public LoginApi(LoginParams feedbackParams, Listener<UserResult> listener, ErrorListener errorListener) {
        super(Request.Method.POST, ApiUrl.getLoginUrl(), feedbackParams, listener, errorListener, UserResult.class);
    }

    public static class LoginParams extends BaseParams {

        public LoginParams(String phone,String messageCode,String invitationCode) {
            put("mobile", phone);
            put("messageCode", messageCode);
            put("invitationCode", invitationCode);
        }
    }


}
